package towerDefense.towers;

import java.awt.image.BufferedImage;
import towerDefense.units.ConstantMovementSprite;
import com.golden.gamedev.object.Sprite;


public class TargettingSprite extends ConstantMovementSprite
{

    protected Sprite myTarget;


    public TargettingSprite (Sprite s)
    {
        super();
        setTarget(s);
    }


    public TargettingSprite (BufferedImage image,
                             double x,
                             double y,
                             double r,
                             double spd,
                             Sprite s)
    {
        super(image, x, y, r, spd);
        setTarget(s);
    }


    public TargettingSprite (BufferedImage image, double r, double spd, Sprite s)
    {
        super(image, r, spd);
        setTarget(s);
    }


    public TargettingSprite (double x, double y, double r, Sprite s)
    {
        super(x, y, r);
        setTarget(s);
    }


    public TargettingSprite (double r, Sprite s)
    {
        super();
        setTarget(s);
    }


    public void setTarget (Sprite myTarget)
    {
        this.myTarget = myTarget;
    }


    public Sprite getTarget ()
    {
        return myTarget;
    }

}
